import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'login',
      component: () => import('@/views/login')
    },
    {
      path: '/main',
      name: 'main',
      component: () => import('@/views/main'),
      children: [{

          path: '/main/teacher',
          name: 'teacher',
          component: () => import('@/views/information/teacher')
        },
        {//部门管理
          path: '/main/select',
          name: 'selsect',
          component: () => import('@/views/information/select')
        },
        {
          path:'/main/coursegl',
          name:'coursegl',
          component:()=>import('@/views/information/coursegl')
        },
        {
          path:'/main/stuguanli',
          name:'stuguanli',
          component:()=>import('@/views/information/stuguanli')
        },
        {
          path:'/main/classgl',
          name:'classgl',
          component:()=>import('@/views/information/classgl')
        },
        {
         path:'/main/classcourse',
          name:'classcourse',
          component:()=>import('@/views/grade/classcourse')
        },
        {
          path:'/main/selfcourse',
          name:'selfcourse',
          component:()=>import('@/views/grade/selfcourse')
        },
        {
          path:'/main/classgrade',
          name:'classgrade',
          component:()=>import('@/views/grade/classgrade')
        },
        {
          path:'/main/selfgrade',
          name:'selfgrade',
          component:()=>import('@/views/grade/selfgrade')
        },
        {
          path:'/main/selfclassgrade',
          name:'selfclassgrade',
          component:()=>import('@/views/grade/selfclassgrade')
        },
/*        {
          Path:'/main/selfgrade',
          name:'selfgrade',
          component:()=>import('@/views/grade/selfgrade')
        },
        {
          path:'/main/selfclassgrade',
          name:'selfclassgrade',
          component:()=>import('@/views/grade/selfclassgrade')
        } */
      ]
    },
  ]
})
